// src/router/index.js
import { createRouter, createWebHistory } from 'vue-router';
import Home from '../views/Home.vue';
import About from '../views/About.vue';
import Login from "../views/login.vue";
import homeDetails from "../views/homeDetails.vue";
import transaction from "../views/transaction.vue";
import visaDetails from "../views/visaDetails.vue";
import setting from "../views/setting.vue";

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
  },
  {
    path: '/about',
    name: 'About',
    component: About,
  },
  {
    path: '/homeDetails',
    name: 'homeDetails',
    component: homeDetails,
  },
  {
    path: '/transaction',
    name: 'transaction',
    component: transaction,
  },
  {
    path: '/visaDetails',
    name: 'visaDetails',
    component: visaDetails,
  },
  {
    path: '/setting',
    name: 'setting',
    component: setting,
  },
  {
    path:"/login",
    name:"login",
    component:Login
  }
];

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes,
});

export default router;
